//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package io.xjar;

import io.xjar.key.XKey;
public class XLauncher implements XConstants {
    public final String[] args;
    public final XDecryptor xDecryptor;
    public final XEncryptor xEncryptor;
    public final XKey xKey;

    public XLauncher(String... args) throws Exception {
        this.args = args;
//        Scanner scanner = new Scanner(System.in);
        String algorithm = args[0];
        int keysize = Integer.parseInt(args[1]);
        int ivsize = Integer.parseInt(args[2]);
        String password = args[3];
        this.xDecryptor = new XJdkDecryptor();
        this.xEncryptor = new XJdkEncryptor();
        this.xKey = XKit.key(algorithm, keysize, ivsize, password);
    }
}
